
bin_PROGRAMS = hacksqld
hacksqld_SOURCES = \
	hacksqld.c \
	hs_catalog.c \
	hs_sql_parser.c \
	hs_sql_parser.h \
	hs_sql_scanner.c 

hacksqld_LDADD = ../../hacksql/src/libhacksql.la

BUILT_SOURCES = \
	hs_sql_parser.c \
	hs_sql_parser.h \
	hs_sql_scanner.c 

$(srcdir)/hs_sql_parser.c $(srcdir)/hs_sql_parser.h: hs_sql_parser.y
	$(YACC) -d -ohs_sql_parser.c hs_sql_parser.y

$(srcdir)/hs_sql_scanner.c: hs_sql_scanner.l
	$(LEX) -ohs_sql_scanner.c hs_sql_scanner.l
	
